package com.colorful.insuranceproject.adapter;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by handsome-Bob on 2017/10/27.
 */
public class CityListBean implements Parcelable{

    private String areaId;//": "integer,区域ID",
    private String areaName;//": "string,区域名"
    private int isChild;
    private String nowCity;
    private String nowCityId;

    public CityListBean() {
    }

    public CityListBean(String areaId, String areaName, int isChild, String nowCity, String nowCityId) {
        this.areaId = areaId;
        this.areaName = areaName;
        this.isChild = isChild;
        this.nowCity = nowCity;
        this.nowCityId = nowCityId;
    }

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public int getIsChild() {
        return isChild;
    }

    public void setIsChild(int isChild) {
        this.isChild = isChild;
    }

    public String getNowCity() {
        return nowCity;
    }

    public void setNowCity(String nowCity) {
        this.nowCity = nowCity;
    }

    public String getNowCityId() {
        return nowCityId;
    }

    public void setNowCityId(String nowCityId) {
        this.nowCityId = nowCityId;
    }

    @Override
    public String toString() {
        return "CityListBean{" +
                "areaId='" + areaId + '\'' +
                ", areaName='" + areaName + '\'' +
                ", isChild=" + isChild +
                ", nowCity='" + nowCity + '\'' +
                ", nowCityId='" + nowCityId + '\'' +
                '}';
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.areaId);
        dest.writeString(this.areaName);
        dest.writeInt(this.isChild);
        dest.writeString(this.nowCity);
        dest.writeString(this.nowCityId);
    }

    protected CityListBean(Parcel in) {
        this.areaId = in.readString();
        this.areaName = in.readString();
        this.isChild = in.readInt();
        this.nowCity = in.readString();
        this.nowCityId = in.readString();
    }

    public static final Creator<CityListBean> CREATOR = new Creator<CityListBean>() {
        @Override
        public CityListBean createFromParcel(Parcel source) {
            return new CityListBean(source);
        }

        @Override
        public CityListBean[] newArray(int size) {
            return new CityListBean[size];
        }
    };
}
